package com.umgsai.aop.level2;

/**
 * Created by shangyidong on 17/6/29.
 */
public class Main {
    public static void main(String[] args) {
        ArithmeticCalculator target = new ArithmeticCalculatorImpl();
        ArithmeticCalculator proxy = new ArithmeticCaculatorProxy(target).getProxy();
        proxy.add(1, 5);
        System.out.println("----------");
        proxy.sub(5, 3);
        System.out.println("----------");
        proxy.mul(3, 7);
        System.out.println("----------");
        proxy.div(9, 3);
    }
}
